package com.wkl.yuyue.utils;

import static java.util.Objects.isNull;

public class StringUtils extends org.apache.commons.lang3.StringUtils{
    public static String format(String template, Object... params)
    {
        if (isEmpty(params) || isEmpty(template))
        {
            return template;
        }
        return StrFormatter.format(template, params);
    }
    public static boolean isEmpty(Object[] objects)
    {
        return isNull(objects) || (objects.length == 0);
    }
}
